Optimal. Leaf size=140 \[ \frac {2 b \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{d f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{d f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2752, 2663, 2661, 2655, 2653} \[ \frac {2 b \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{d f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{d f \sqrt {c+d \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2752
Rubi steps
\begin {align*} \int \frac {a+b \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx &=\frac {b \int \sqrt {c+d \sin (e+f x)} \, dx}{d}+\frac {(-b c+a d) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{d}\\ &=\frac {\left (b \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{d \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left ((-b c+a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{d \sqrt {c+d \sin (e+f x)}}\\ &=\frac {2 b E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{d f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 (b c-a d) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{d f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.56, size = 101, normalized size = 0.72 \[ -\frac {2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \left ((a d-b c) F\left (\frac {1}{4} (-2 e-2 f x+\pi )|\frac {2 d}{c+d}\right )+b (c+d) E\left (\frac {1}{4} (-2 e-2 f x+\pi )|\frac {2 d}{c+d}\right )\right )}{d f \sqrt {c+d \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.73, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b \sin \left (f x + e\right ) + a}{\sqrt {d \sin \left (f x + e\right ) + c}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b \sin \left (f x + e\right ) + a}{\sqrt {d \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.33, size = 243, normalized size = 1.74 \[ -\frac {2 \left (c -d \right ) \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \sqrt {-\frac {\left (\sin \left (f x +e \right )-1\right ) d}{c +d}}\, \sqrt {-\frac {d \left (1+\sin \left (f x +e \right )\right )}{c -d}}\, \left (\EllipticE \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b c +\EllipticE \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b d -a \EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) d -\EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b d \right )}{d^{2} \cos \left (f x +e \right ) \sqrt {c +d \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b \sin \left (f x + e\right ) + a}{\sqrt {d \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.58, size = 176, normalized size = 1.26 \[ \frac {b\,\left (2\,c\,\mathrm {F}\left (\mathrm {asin}\left (\frac {\sqrt {2}\,\sqrt {1-\sin \left (e+f\,x\right )}}{2}\right )\middle |\frac {2\,d}{c+d}\right )-2\,\left (c+d\right )\,\mathrm {E}\left (\mathrm {asin}\left (\frac {\sqrt {2}\,\sqrt {1-\sin \left (e+f\,x\right )}}{2}\right )\middle |\frac {2\,d}{c+d}\right )\right )\,\sqrt {{\cos \left (e+f\,x\right )}^2}\,\sqrt {\frac {c+d\,\sin \left (e+f\,x\right )}{c+d}}}{d\,f\,\cos \left (e+f\,x\right )\,\sqrt {c+d\,\sin \left (e+f\,x\right )}}-\frac {2\,a\,\mathrm {F}\left (\frac {\pi }{4}-\frac {e}{2}-\frac {f\,x}{2}\middle |\frac {2\,d}{c+d}\right )\,\sqrt {\frac {c+d\,\sin \left (e+f\,x\right )}{c+d}}}{f\,\sqrt {c+d\,\sin \left (e+f\,x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a + b \sin {\left (e + f x \right )}}{\sqrt {c + d \sin {\left (e + f x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________